package io;

import java.io.IOException;
import org.jdom2.JDOMException;

/**
 * This class provides access to ManHasRec data for the peer review system.
 * 
 * @author Lun-Wei Chang
 * 
 * @version March 11, 2014
 * 
 */
public class ManHasRecAccess extends AbstractAccess {
  /** Position of ManhasRec id element in the XML file. */
  public static final int MAN_REC_ID = 0;
  /** Position of recommendation id element in the XML file. */
  public static final int REC_ID = 1;
  /** Position of review id element in the XML file. */
  public static final int REV_ID = 2;
  
  /** Name of the XML's file. */
  private static final String XMLFILE = "ManHasRec.xml";
  
  /** A constant for the ManHasRec id element in the XML file. */
  private static final String MANRECID = "ManRecID";
  /** A constant for the recommendation id element in the XML file. */
  private static final String RECSUMMARY = "RecID";
  /** A constant for the  manuscript id in the XML file. */
  private static final String RECRATIONALE = "ManuscriptID";
  
  
  /**
   * The constructor to instantiate the ManHasRec objects.
   * @throws IOException If there is a problem establishing connectivity to the file.
   * @throws JDOMException If the file cannot be correctly parsed. 
   */
  public ManHasRecAccess() throws IOException, JDOMException {
    super(XMLFILE);
  }
  

  
}
